package pos.domain;

import pos.data.JDBCExchangeDAO;
import pos.data.JDBCPropertyRatingDAO;

public class RatingManager implements IRatingManager {

	@Override
	public void realizarValoracion(PropertyRating pr, UserRating us) {
	
		(new JDBCPropertyRatingDAO()).insert(pr,us);
		//cambiamos el estado del intercambio de "PorValorar" a "Terminado"
		(new JDBCExchangeDAO()).updateATerminar(pr.getExchangeID());
	
	}

}
